<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix='fmt' uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="/favicon.ico">

    <title><fmt:message key="application.title"></fmt:message></title>

    <!-- Bootstrap core CSS -->
    <link href="/scripts/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- Custom styles for this template -->

    <link href="/scripts/apps/css/signin.css" rel="stylesheet">

    <style type="text/css">
    .tip {
        font-size: 10px;
        color: red;
        text-align: center;
    }

    </style>
  </head>

  <body>
    <div class="container">
        <c:url var="loginUrl" value="/login" />
      <form action="${loginUrl}" id="login_form" class="form-signin" method="post">
          <div class="form-signin-heading text-center">
            <h2 ><fmt:message key="application.title"></fmt:message></h2>
          </div>
          <div id="tip" class="tip"></div>
          <c:if test="${param.error != null}">
                <span style="color:red">${param }</span>
        </c:if>

        <label for="inputEmail" class="sr-only">登录帐号</label>
        <input type="text" id="inputUserCode" name="username" class="form-control" placeholder="登录帐号"  autofocus>
           <label for="inputPassword" class="sr-only">登录密码</label>
           <input type="password" id="inputPassword" name="password" class="form-control" placeholder="登录密码">
        <div class="input-group input-sm">
          <div class="checkbox">
            <label><input type="checkbox" id="rememberme" name="remember-me" value="true"> 下次自动登录</label>
          </div>
        </div>
        <button id="login_button" class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
      </form>

    </div>

    <script src="/scripts/plugins/jQuery/jquery-2.2.3.min.js"></script>
  </body>
</html>